package com.hx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Data   get set toString 方法
 * @AllArgsConstructor   全参构造器
 * @NoArgsConstructor   无参构造器
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class User {
   private Integer id;
   private String name;
   private String password;
   private String phone;
   private Integer genderId;
   private Date birthday;


   private Gender gender;

   @Override
   public String toString() {
      return "User{" +
              "id=" + id +
              ", name='" + name + '\'' +
              ", password='" + password + '\'' +
              ", phone='" + phone + '\'' +
              ", genderId=" + genderId +
              ", birthday=" + birthday +
              '}';
   }
}
